<template>
  <div
    :style="{
      left: config.left + 'px',
      top: config.top + 'px',
      width: config.width + 'px',
      height: config.height + 'px',
    }"
    class="edit-box"
  >
    文本组件编辑
  </div>
</template>

<script setup>
const props = defineProps({
  config: {
    type: Object,
    default: () => {
      return {};
    },
  },
});
</script>

<style lang="scss" scoped>
.edit-box {
  width: 300px;
  height: 300px;
  background: palegreen;
}
</style>
